@extends('layouts.art')

@section('content')
  <a class="btn btn-primary" href="art/create">添加文章</a>
   <a class="btn btn-primary" href="art/display">预览内容</a> 

@foreach($art as $v)
   
    <div class="panel panel-default">
  <div class="panel-body">
    {{$v->title}}
    <a href="/art/{{$v->id}}" class="btn btn-info">阅读</a>
    <a href="/art/{{$v->id}}/edit" class="btn btn-info">修改</a>

      <form action="/art/{{$v->id}}" method="post" style="display: inline-block;">
            {{csrf_field()}}
            {{ method_field('DELETE') }}
            <button type="submit" class="btn btn-danger">删除</button>
        </form>
    </div>
    </div>
@endforeach 

{!!$art->render() !!}


 
@endsection